package com.gdit.zax.dao;

import java.util.ArrayList;

import com.gdit.zax.entitys.Course;
import com.gdit.zax.entitys.SearchM;

public interface SearchDao {
	
	public ArrayList<Course> sreachCrouse(String key, int page, int onepagecount);
	
	//列出热搜视频
	public ArrayList<SearchM> listHotSearchVideo(int page,int onepagecount);
	//列出热搜用户
	public ArrayList<SearchM> listHotSearchUser(int page,int onepagecount);
	
	public boolean addSearchRecod(int uid,int type,String key);
	
	public int getVideoSearchCount(String key);//获取搜索次数
	
	public int getUserSearchCount(String key);//获取搜索次数
}
